/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Database.DBInstructorBooking;
import Database.IFDBInstructorBooking;
import Domain.InstructorBooking;
import java.util.ArrayList;

/**
 *
 * @author Min0
 */
public class CTRLInstructorBooking
{
    
    IFDBInstructorBooking IB = new DBInstructorBooking();
    
    public CTRLInstructorBooking()
    {}

    public void insertIB(String IBID, String instructorID, String CustomerID, String Date, String startTime, String noOfHours)
    {
        IB.insertIB(IBID, instructorID, CustomerID, Date, startTime, noOfHours);
    }

    public InstructorBooking getIB(String IBID)
    {
        return IB.getIB(IBID);
    }

    public ArrayList<InstructorBooking> getIBList()
    {
        return IB.getIBList();
    }

    public void updateIB(String IBID, String instructorID, String CustomerID, String Date, String startTime, String noOfHours)
    {
        IB.updateIB(IBID, instructorID, CustomerID, Date, startTime, noOfHours);
    }

    public void deleteIB(String IBID)
    {
        IB.deleteIB(IBID);
    }
    
    public int getMax()
    {
        return IB.getMax();
    }
}
